<?php

namespace Buu\Modules\Domain\Apis;

use App\Http\Controllers\Controller;
use Doraemon\service\DomainConfig;
use Illuminate\Http\Request;

class Getlist extends Controller
{
    public function index()
    {
       $list =  DomainConfig::getAll();
        return response()->json([
            'code' => 1,
            'data'  =>[
                'domain_config' => $list?: []
            ]
        ]);
    }

}